-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAFKA-18379: Enforce resigned cannot transition to any other state in same epoch #19236
base: trunk
Are you sure you want to change the base?
Conversation
… same epoch JIRA: KAFKA-18379 For further details, please refer to [KIP-996](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=272927537#KIP996:PreVote-ResignedStatechanges) and apache#18240 (comment). In short, this PR adds a check for the transition from the resigned state to other states to prevent a resigned leader from accidentally becoming its own follower in the same epoch, which would create an invalid circular reference.
A label of 'needs-attention' was automatically added to this PR in order to raise the |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
A label of 'needs-attention' was automatically added to this PR in order to raise the |
JIRA: KAFKA-18379
For further details, please refer to KIP-996 and #18240 (comment).
In short, this PR adds a check for the transition from the resigned state to other states to prevent a resigned leader from accidentally becoming its own follower in the same epoch, which would create an invalid circular reference.